Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 18: Controlling Texture Mapping

../ch18/18fig26b.gif
Figure 18.26b

A texture of San Diego Bay mapped to a flat elevation grid. Compare with Figure 18.26c.

18fig26b.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Shape {
    appearance Appearance {
        material Material { }
        texture ImageTexture { url "sdbaywlr.jpg" }
    }
    geometry ElevationGrid {
        xDimension 5
        zDimension 5
        xSpacing   0.2
        zSpacing   0.2
        solid      FALSE
        height [
            0.0, 0.0, 0.0, 0.0, 0.0,
            0.0, 0.0, 0.0, 0.0, 0.0,
            0.0, 0.0, 0.0, 0.0, 0.0,
            0.0, 0.0, 0.0, 0.0, 0.0,
            0.0, 0.0, 0.0, 0.0, 0.0
        ]
    }
}